<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

    <title>会员列表</title>

    <link href="<?php echo ADMIN_CSS; ?>/mine.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<style>
    .tr_color {
        background-color: #9F88FF
    }
</style>
<div class="div_head">
            <span>
                <span style="float: left;">当前位置是：权限管理-》权限列表</span>
                <span style="float: right; margin-right: 8px; font-weight: bold;">
                    <a style="text-decoration: none;" href="/index.php/Admin/Auth/add">【添加权限】</a>
                </span>
            </span>
</div>
<div></div>
<div style="font-size: 13px; margin: 10px 5px;">
    <table class="table_a" border="1" width="100%">
        <tbody>
        <tr style="font-weight: bold;">
            <td>权限ID</td>
            <td>权限名称</td>
            <td>父ID</td>
            <td>控制器</td>
            <td>操作方法</td>
            <td>全路径</td>
            <td>等级</td>
            <td align="center" colspan="2">操作</td>
        </tr>
        <?php if(is_array($auth_info)): foreach($auth_info as $key=>$item): ?><tr id="product1">
                <td><?php echo ($item["auth_id"]); ?></td>
                <td><?php echo str_repeat('--/',$item['auth_level']); echo ($item["auth_name"]); ?></td>
                <td><?php echo ($item["auth_pid"]); ?></td>
                <td><?php echo ($item["auth_c"]); ?></td>
                <td><?php echo ($item["auth_a"]); ?></td>
                <td><?php echo ($item["auth_path"]); ?></td>
                <td><?php echo ($item["auth_level"]); ?></td>
                <td><a href="/index.php/Admin/Auth/edit/auth_id/<?php echo ($item["auth_id"]); ?>">修改</a></td>
                <td><a href="/index.php/Admin/Auth/del/auth_id/<?php echo ($item["auth_id"]); ?>" onclick="return confirm('are you sure delete?')">删除</a></td>
            </tr><?php endforeach; endif; ?>
        </tbody>
    </table>
</div>
</body>
</html>